﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BDD.TicTacToe.Acceptance.Tests.Utilities;
using TechTalk.SpecFlow;

namespace BDD.TicTacToe.Acceptance.Tests.Events
{
    [Binding]
    public class FeatureEvents
    {
        [BeforeFeature]
        public static void BeforeFeature()
        {
            WebBrowser.InitializeBrowser();
        }

        [AfterFeature]
        public static void AfterFeature()
        {
            WebBrowser.ShutdownBrowser();
        }

        [AfterScenario]
        public void AfterScenario()
        {
            WebBrowser.Current.Close();
        }
    }    
}
